package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DetectionInfoArg {
    private String pk_name = "detection_id";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DetectionInfoCriteria> oredCriteria;

    public DetectionInfoArg() {
        oredCriteria = new ArrayList<DetectionInfoCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DetectionInfoCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DetectionInfoCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DetectionInfoCriteria or() {
    	DetectionInfoCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DetectionInfoCriteria createCriteria() {
    	DetectionInfoCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DetectionInfoCriteria createCriteriaInternal() {
    	DetectionInfoCriteria criteria = new DetectionInfoCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DetectionInfoCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DetectionInfoCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DetectionInfoCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DetectionInfoCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DetectionInfoCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DetectionInfoCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DetectionInfoCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DetectionInfoCriterion(condition, value1, value2));
        }

        public DetectionInfoCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionIdIsNull() {
            addCriterion("detection_id is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdIsNotNull() {
            addCriterion("detection_id is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdEqualTo(Long value) {
            addCriterion("detection_id =", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotEqualTo(Long value) {
            addCriterion("detection_id <>", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdGreaterThan(Long value) {
            addCriterion("detection_id >", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdGreaterThanOrEqualTo(Long value) {
            addCriterion("detection_id >=", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdLessThan(Long value) {
            addCriterion("detection_id <", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdLessThanOrEqualTo(Long value) {
            addCriterion("detection_id <=", value, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdLike(Long value) {
            addCriterion("detection_id like ", value, "detection_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotLike(Long value) {
            addCriterion("detection_id  not like ", value, "detection_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdLeftLike(Long value) {
            addCriterion("detection_id like ", value, "detection_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotLeftLike(Long value) {
            addCriterion("detection_id  not like ", value, "detection_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdRightLike(Long value) {
            addCriterion("detection_id like ", value, "detection_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotRightLike(Long value) {
            addCriterion("detection_id  not like ", value, "detection_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdIn(List<Long> values) {
            addCriterion("detection_id  in ", values, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotIn(List<Long> values) {
            addCriterion("detection_id not in ", values, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdBetween(Long value1, Long value2) {
            addCriterion("detection_id between ", value1, value2, "detection_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionIdNotBetween(Long value1, Long value2) {
            addCriterion("detection_id not between ", value1, value2, "detection_id");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDmTaskIdIsNull() {
            addCriterion("DM_TASK_ID is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdIsNotNull() {
            addCriterion("DM_TASK_ID is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdEqualTo(Integer value) {
            addCriterion("DM_TASK_ID =", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <>", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdGreaterThan(Integer value) {
            addCriterion("DM_TASK_ID >", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID >=", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdLessThan(Integer value) {
            addCriterion("DM_TASK_ID <", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <=", value, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdLeftLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotLeftLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdRightLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotRightLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdIn(List<Integer> values) {
            addCriterion("DM_TASK_ID  in ", values, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotIn(List<Integer> values) {
            addCriterion("DM_TASK_ID not in ", values, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID between ", value1, value2, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDmTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID not between ", value1, value2, "DM_TASK_ID");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionTypeIsNull() {
            addCriterion("detection_type is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeIsNotNull() {
            addCriterion("detection_type is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeEqualTo(Integer value) {
            addCriterion("detection_type =", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotEqualTo(Integer value) {
            addCriterion("detection_type <>", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeGreaterThan(Integer value) {
            addCriterion("detection_type >", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("detection_type >=", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeLessThan(Integer value) {
            addCriterion("detection_type <", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeLessThanOrEqualTo(Integer value) {
            addCriterion("detection_type <=", value, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeLike(Integer value) {
            addCriterion("detection_type like ", value, "detection_type", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotLike(Integer value) {
            addCriterion("detection_type  not like ", value, "detection_type", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeLeftLike(Integer value) {
            addCriterion("detection_type like ", value, "detection_type", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotLeftLike(Integer value) {
            addCriterion("detection_type  not like ", value, "detection_type", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeRightLike(Integer value) {
            addCriterion("detection_type like ", value, "detection_type", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotRightLike(Integer value) {
            addCriterion("detection_type  not like ", value, "detection_type", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeIn(List<Integer> values) {
            addCriterion("detection_type  in ", values, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotIn(List<Integer> values) {
            addCriterion("detection_type not in ", values, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeBetween(Integer value1, Integer value2) {
            addCriterion("detection_type between ", value1, value2, "detection_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("detection_type not between ", value1, value2, "detection_type");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionObjectTypeIsNull() {
            addCriterion("detection_object_type is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeIsNotNull() {
            addCriterion("detection_object_type is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeEqualTo(String value) {
            addCriterion("detection_object_type =", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotEqualTo(String value) {
            addCriterion("detection_object_type <>", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeGreaterThan(String value) {
            addCriterion("detection_object_type >", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeGreaterThanOrEqualTo(String value) {
            addCriterion("detection_object_type >=", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeLessThan(String value) {
            addCriterion("detection_object_type <", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeLessThanOrEqualTo(String value) {
            addCriterion("detection_object_type <=", value, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeLike(String value) {
            addCriterion("detection_object_type like ", value, "detection_object_type", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotLike(String value) {
            addCriterion("detection_object_type  not like ", value, "detection_object_type", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeLeftLike(String value) {
            addCriterion("detection_object_type like ", value, "detection_object_type", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotLeftLike(String value) {
            addCriterion("detection_object_type  not like ", value, "detection_object_type", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeRightLike(String value) {
            addCriterion("detection_object_type like ", value, "detection_object_type", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotRightLike(String value) {
            addCriterion("detection_object_type  not like ", value, "detection_object_type", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeIn(List<String> values) {
            addCriterion("detection_object_type  in ", values, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotIn(List<String> values) {
            addCriterion("detection_object_type not in ", values, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeBetween(String value1, String value2) {
            addCriterion("detection_object_type between ", value1, value2, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectTypeNotBetween(String value1, String value2) {
            addCriterion("detection_object_type not between ", value1, value2, "detection_object_type");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionObjectIdIsNull() {
            addCriterion("detection_object_id is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdIsNotNull() {
            addCriterion("detection_object_id is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdEqualTo(Integer value) {
            addCriterion("detection_object_id =", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotEqualTo(Integer value) {
            addCriterion("detection_object_id <>", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdGreaterThan(Integer value) {
            addCriterion("detection_object_id >", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("detection_object_id >=", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdLessThan(Integer value) {
            addCriterion("detection_object_id <", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("detection_object_id <=", value, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdLike(Integer value) {
            addCriterion("detection_object_id like ", value, "detection_object_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotLike(Integer value) {
            addCriterion("detection_object_id  not like ", value, "detection_object_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdLeftLike(Integer value) {
            addCriterion("detection_object_id like ", value, "detection_object_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotLeftLike(Integer value) {
            addCriterion("detection_object_id  not like ", value, "detection_object_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdRightLike(Integer value) {
            addCriterion("detection_object_id like ", value, "detection_object_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotRightLike(Integer value) {
            addCriterion("detection_object_id  not like ", value, "detection_object_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdIn(List<Integer> values) {
            addCriterion("detection_object_id  in ", values, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotIn(List<Integer> values) {
            addCriterion("detection_object_id not in ", values, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdBetween(Integer value1, Integer value2) {
            addCriterion("detection_object_id between ", value1, value2, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionObjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("detection_object_id not between ", value1, value2, "detection_object_id");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionItemNameIsNull() {
            addCriterion("detection_item_name is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameIsNotNull() {
            addCriterion("detection_item_name is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameEqualTo(String value) {
            addCriterion("detection_item_name =", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotEqualTo(String value) {
            addCriterion("detection_item_name <>", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameGreaterThan(String value) {
            addCriterion("detection_item_name >", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameGreaterThanOrEqualTo(String value) {
            addCriterion("detection_item_name >=", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameLessThan(String value) {
            addCriterion("detection_item_name <", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameLessThanOrEqualTo(String value) {
            addCriterion("detection_item_name <=", value, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameLike(String value) {
            addCriterion("detection_item_name like ", value, "detection_item_name", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotLike(String value) {
            addCriterion("detection_item_name  not like ", value, "detection_item_name", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameLeftLike(String value) {
            addCriterion("detection_item_name like ", value, "detection_item_name", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotLeftLike(String value) {
            addCriterion("detection_item_name  not like ", value, "detection_item_name", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameRightLike(String value) {
            addCriterion("detection_item_name like ", value, "detection_item_name", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotRightLike(String value) {
            addCriterion("detection_item_name  not like ", value, "detection_item_name", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameIn(List<String> values) {
            addCriterion("detection_item_name  in ", values, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotIn(List<String> values) {
            addCriterion("detection_item_name not in ", values, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameBetween(String value1, String value2) {
            addCriterion("detection_item_name between ", value1, value2, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionItemNameNotBetween(String value1, String value2) {
            addCriterion("detection_item_name not between ", value1, value2, "detection_item_name");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionTotalResultIsNull() {
            addCriterion("detection_total_result is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultIsNotNull() {
            addCriterion("detection_total_result is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultEqualTo(BigDecimal value) {
            addCriterion("detection_total_result =", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotEqualTo(BigDecimal value) {
            addCriterion("detection_total_result <>", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultGreaterThan(BigDecimal value) {
            addCriterion("detection_total_result >", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("detection_total_result >=", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultLessThan(BigDecimal value) {
            addCriterion("detection_total_result <", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultLessThanOrEqualTo(BigDecimal value) {
            addCriterion("detection_total_result <=", value, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultLike(BigDecimal value) {
            addCriterion("detection_total_result like ", value, "detection_total_result", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotLike(BigDecimal value) {
            addCriterion("detection_total_result  not like ", value, "detection_total_result", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultLeftLike(BigDecimal value) {
            addCriterion("detection_total_result like ", value, "detection_total_result", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotLeftLike(BigDecimal value) {
            addCriterion("detection_total_result  not like ", value, "detection_total_result", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultRightLike(BigDecimal value) {
            addCriterion("detection_total_result like ", value, "detection_total_result", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotRightLike(BigDecimal value) {
            addCriterion("detection_total_result  not like ", value, "detection_total_result", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultIn(List<BigDecimal> values) {
            addCriterion("detection_total_result  in ", values, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotIn(List<BigDecimal> values) {
            addCriterion("detection_total_result not in ", values, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("detection_total_result between ", value1, value2, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionTotalResultNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("detection_total_result not between ", value1, value2, "detection_total_result");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectionUsedResultIsNull() {
            addCriterion("detection_used_result is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultIsNotNull() {
            addCriterion("detection_used_result is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultEqualTo(BigDecimal value) {
            addCriterion("detection_used_result =", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotEqualTo(BigDecimal value) {
            addCriterion("detection_used_result <>", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultGreaterThan(BigDecimal value) {
            addCriterion("detection_used_result >", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("detection_used_result >=", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultLessThan(BigDecimal value) {
            addCriterion("detection_used_result <", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultLessThanOrEqualTo(BigDecimal value) {
            addCriterion("detection_used_result <=", value, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultLike(BigDecimal value) {
            addCriterion("detection_used_result like ", value, "detection_used_result", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotLike(BigDecimal value) {
            addCriterion("detection_used_result  not like ", value, "detection_used_result", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultLeftLike(BigDecimal value) {
            addCriterion("detection_used_result like ", value, "detection_used_result", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotLeftLike(BigDecimal value) {
            addCriterion("detection_used_result  not like ", value, "detection_used_result", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultRightLike(BigDecimal value) {
            addCriterion("detection_used_result like ", value, "detection_used_result", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotRightLike(BigDecimal value) {
            addCriterion("detection_used_result  not like ", value, "detection_used_result", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultIn(List<BigDecimal> values) {
            addCriterion("detection_used_result  in ", values, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotIn(List<BigDecimal> values) {
            addCriterion("detection_used_result not in ", values, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("detection_used_result between ", value1, value2, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectionUsedResultNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("detection_used_result not between ", value1, value2, "detection_used_result");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andDetectDateIsNull() {
            addCriterion("detect_date is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateIsNotNull() {
            addCriterion("detect_date is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateEqualTo(Date value) {
            addCriterion("detect_date =", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotEqualTo(Date value) {
            addCriterion("detect_date <>", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateGreaterThan(Date value) {
            addCriterion("detect_date >", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateGreaterThanOrEqualTo(Date value) {
            addCriterion("detect_date >=", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateLessThan(Date value) {
            addCriterion("detect_date <", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateLessThanOrEqualTo(Date value) {
            addCriterion("detect_date <=", value, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateLike(Date value) {
            addCriterion("detect_date like ", value, "detect_date", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotLike(Date value) {
            addCriterion("detect_date  not like ", value, "detect_date", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateLeftLike(Date value) {
            addCriterion("detect_date like ", value, "detect_date", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotLeftLike(Date value) {
            addCriterion("detect_date  not like ", value, "detect_date", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateRightLike(Date value) {
            addCriterion("detect_date like ", value, "detect_date", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotRightLike(Date value) {
            addCriterion("detect_date  not like ", value, "detect_date", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateIn(List<String> values) {
            addCriterion("detect_date  in ", values, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotIn(List<Date> values) {
            addCriterion("detect_date not in ", values, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateBetween(Date value1, Date value2) {
            addCriterion("detect_date between ", value1, value2, "detect_date");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andDetectDateNotBetween(Date value1, Date value2) {
            addCriterion("detect_date not between ", value1, value2, "detect_date");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andNodeIdIsNull() {
            addCriterion("node_id is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdIsNotNull() {
            addCriterion("node_id is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdEqualTo(Integer value) {
            addCriterion("node_id =", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotEqualTo(Integer value) {
            addCriterion("node_id <>", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdGreaterThan(Integer value) {
            addCriterion("node_id >", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("node_id >=", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdLessThan(Integer value) {
            addCriterion("node_id <", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdLessThanOrEqualTo(Integer value) {
            addCriterion("node_id <=", value, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdLike(Integer value) {
            addCriterion("node_id like ", value, "node_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotLike(Integer value) {
            addCriterion("node_id  not like ", value, "node_id", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdLeftLike(Integer value) {
            addCriterion("node_id like ", value, "node_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotLeftLike(Integer value) {
            addCriterion("node_id  not like ", value, "node_id", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdRightLike(Integer value) {
            addCriterion("node_id like ", value, "node_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotRightLike(Integer value) {
            addCriterion("node_id  not like ", value, "node_id", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdIn(List<Integer> values) {
            addCriterion("node_id  in ", values, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotIn(List<Integer> values) {
            addCriterion("node_id not in ", values, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdBetween(Integer value1, Integer value2) {
            addCriterion("node_id between ", value1, value2, "node_id");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andNodeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("node_id not between ", value1, value2, "node_id");
            return (DetectionInfoCriteria) this;
        }
        public DetectionInfoCriteria andWarningFlagIsNull() {
            addCriterion("warning_flag is null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagIsNotNull() {
            addCriterion("warning_flag is not null");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagEqualTo(Integer value) {
            addCriterion("warning_flag =", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotEqualTo(Integer value) {
            addCriterion("warning_flag <>", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagGreaterThan(Integer value) {
            addCriterion("warning_flag >", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("warning_flag >=", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagLessThan(Integer value) {
            addCriterion("warning_flag <", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagLessThanOrEqualTo(Integer value) {
            addCriterion("warning_flag <=", value, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagLike(Integer value) {
            addCriterion("warning_flag like ", value, "warning_flag", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotLike(Integer value) {
            addCriterion("warning_flag  not like ", value, "warning_flag", 1);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagLeftLike(Integer value) {
            addCriterion("warning_flag like ", value, "warning_flag", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotLeftLike(Integer value) {
            addCriterion("warning_flag  not like ", value, "warning_flag", 0);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagRightLike(Integer value) {
            addCriterion("warning_flag like ", value, "warning_flag", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotRightLike(Integer value) {
            addCriterion("warning_flag  not like ", value, "warning_flag", 2);
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagIn(List<Integer> values) {
            addCriterion("warning_flag  in ", values, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotIn(List<Integer> values) {
            addCriterion("warning_flag not in ", values, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagBetween(Integer value1, Integer value2) {
            addCriterion("warning_flag between ", value1, value2, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

        public DetectionInfoCriteria andWarningFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("warning_flag not between ", value1, value2, "warning_flag");
            return (DetectionInfoCriteria) this;
        }

    }

    public static class DetectionInfoCriteria extends GeneratedCriteria {

        protected DetectionInfoCriteria() {
            super();
        }
    }

    public static class DetectionInfoCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DetectionInfoCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DetectionInfoCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DetectionInfoCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DetectionInfoCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DetectionInfoCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DetectionInfoCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}